Addons.Pagecontrol = new Class({
	construct: function(){
		var parent = this;
		
		Sarue.Require.options.complete = function(){
			if(parent.loader)
				parent.loader.apply(this, arguments);
		};
		
		Sarue.Require.options.finish = function(x){
			if(parent.ready)
				parent.ready.apply(this, arguments);
		}
	},
	
	//loader is a method that is called whenever a script is loaded, successfully or unsuccessfully
	loader: function(obj, success){},
	
	//ready method is called when all scripts have been loaded successfully, from here you are sure that the addons are ready for use
	ready: function(){}
});
